package com.itheima.properties;

import java.util.Properties;
import java.util.Set;

/*
Properties 独特的方法  更多的时候 作为 配置   字符串的形式
作为 配置(属性 属性值)
键---值
 */
public class Demo02 {

    public static void main(String[] args) {
        Properties properties = new Properties();
        properties.setProperty("maxlogincount","3");//put
        properties.setProperty("loginnamesize","20");
        properties.setProperty("passwordsize","20");

        String maxlogincount = properties.getProperty("maxlogincount");//get
        String loginnamesize = properties.getProperty("loginnamesize");
        String passwordsize = properties.getProperty("passwordsize");
        System.out.println(maxlogincount);
        System.out.println(loginnamesize);
        System.out.println(passwordsize);


        Set<String> strings = properties.stringPropertyNames();// keySet()
        System.out.println(strings);

    }


}
